package com.example.demo.entity.vo;

import com.example.demo.entity.pojo.BookType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BookTypeVo {
    private int id;
    //类型
    private String type;

    public BookTypeVo(BookType bookType) {
        this.id = bookType.getId();
        this.type = bookType.getType();
    }
}